<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/3
 * Time: 23:33
 */

namespace app\admin\controller;


class System extends Base
{
    //网站设置信息
    public function systemset()
    {
        if (Request() -> isAjax()){
            $data = input('post.');
            $result = model('common/System') -> system($data);
            if ($result == 1){
                $this ->success('更新成功！','admin/system/systemset');
            } else {
                $this -> error($result);
            }
        }
        $system = model('common/System') -> find();
        $data = [
            'system' => $system
        ];
        $this -> assign($data);
        return view();
    }
}